package com.addressbook.tests;

import org.testng.Assert;
import org.testng.annotations.Test;

import com.addressbook.fw.Contact;

public class ContactCreationTests extends TestBase {
        
        @Test
        public void testCreateContactWithValidData() {
                Contact contact = new Contact().setFirstName("tester").setLastName("tester");
                app.getContactHelper().createContact(contact);
                Contact createdContact = app.getContactHelper().getFirstContact();
                Assert.assertEquals(contact, createdContact);
        }
}
